package com.chuangjiangx.member.manager.client.web.basic.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 注册会员参数
 * Created by YangKuo on 2017/9/22.
 */
@Getter
@Setter
@ApiModel(value = "注册会员参数")
public class CreateMemberRequest {

    /**
     * 会员姓名
     */
    @ApiModelProperty(value = "会员姓名")
    private String name;

    /**
     * 会员性别: 0:男，1：女
     */
    @ApiModelProperty(value = "会员性别: 0:男，1：女")
    @NotNull(message = "性别不能为空")
    private Byte sex;

    /**
     * 会员手机号
     */
    @ApiModelProperty(value = "会员手机号")
    @Length(min = 11, max = 11, message = "{mobilePhone.size}")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    /**
     * 会员生日
     */
    @ApiModelProperty(value = "会员生日")
    private Date birthday;

    /**
     * 验证码
     */
    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;

}
